package com.cst.words.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author : CST
 */
@Data
@TableName("vocabulary")
public class Vocabulary {
    @TableId(value = "vid", type = IdType.AUTO)
    private Integer vid ;//单词id
    @TableField("word")
    private String word ;//单词
    @TableField("definition")
    private String definition ;//中文释义
    @TableField("pronunciation")
    private String pronunciation ;//音标
    @TableField("audio")
    private String audio ;//音频地址

    @TableField("usage1")
    private String usage1;

    @TableField("translation1")
    private String translation1 ;//

    @TableField("usage2")
    private String usage2 ;//

    @TableField("translation_2")
    private String translation2;


    @TableField("learning_id")
    private int learning_id = 0;//
    @TableField("review_id")
    private int review_id = 0;//
    @TableField("object_id")
    private int object_id = 0;//
    @TableField("type")
    private String type = "vocabulary";//
    @TableField("sub_type")
    private String sub_type ;//
}
